package com.lbj.service;

import com.lbj.domain.Topic;

import java.util.List;
import java.util.Map;

public interface TopicService {
    List<Topic> getTopics();

    Boolean deleteTopicById(String id);

    Boolean addTopic(Topic topic);

    List<Topic> getTopicsByCondition(Map<String, String> conditions);

    Topic getTopicById(String id);

    boolean updateInfo(Topic topic);

    int getUserThumbCount(List<Topic> topic);

    int geUserCollectionCount(List<Topic> topic);

    int getUserTopicCount(List<Topic> topic);

    List<Topic> getTopicsTop();

    List<Topic> pageList(int pageNum, int pageSize);

    int getTotalPage(int totalCount,int pageSize);

    int getTotalCount();

    Boolean top(String id);

    Boolean essence(String id);
}
